package com.hourse.platform.vo;

import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @使用描述: LoginTokenVO
 */
@Data
public class LoginTokenVO extends BaseVo implements Serializable {

  /**
   * @功能描述: 【令牌】
   * @作   者 : Rain
   * @创建时间 : 2020/11/30 13:15
   */
  private String token;
  private String name;
  private String eName;
  private String roleName;
  private boolean isNewHome;
  private String phone;

  private Map<String, List<Object>> authInfo = new HashMap<>();

  /**
   * @功能描述: 【菜单信息】
   * @作   者 : Rain
   * @创建时间 : 2020/12/8 15:43
   */
  private List menuInfo = new ArrayList();

  /**
   * @功能描述: 【角色信息】
   * @作   者 : Rain
   * @创建时间 : 2020/12/8 15:43
   */
  private List roles = new ArrayList();

  public LoginTokenVO() {
  }

  public LoginTokenVO(String token) {
    this.token = token;
  }

  public LoginTokenVO(String token,String name){
    this.name = name;
    this.token = token;
  }

  public LoginTokenVO(String token , Map<String, List<Object>> authInfo, List menuInfo , List roles, String name,String phone) {
    this.token = token;
    this.authInfo = authInfo;
    this.menuInfo = menuInfo;
    this.roles = roles;
    this.name = name;
    this.phone = phone;
  }

  public LoginTokenVO(String token , Map<String, List<Object>> authInfo, List menuInfo , List roles, String name, String icon, String eName, String roleName) {
    this.token = token;
    this.authInfo = authInfo;
    this.menuInfo = menuInfo;
    this.roles = roles;
    this.name = name;
    this.roleName = roleName;
    this.eName = eName;
    this.isNewHome = isNewHome;
  }
}
